package com.ltf.service;

import com.ltf.dao.CarouselDao;
import com.ltf.entity.Carousel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarouselServiceImpl implements CarouselService{
    @Autowired
    CarouselDao carouselDao;
    @Override
    public List<Carousel> findAll() {
        return this.carouselDao.findAll();
    }

    @Override
    public Carousel findById(Integer id) {
        return this.carouselDao.findById(id);
    }

    @Override
    public int update(Carousel carousel) {
        return this.carouselDao.update(carousel);
    }

    @Override
    public int add(Carousel carousel) {
        return this.carouselDao.add(carousel);
    }

    @Override
    public int del(Integer id) {
        return this.carouselDao.del(id);
    }
}
